﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    class SumUnitls
    {
        //方法重载
        public int Sum(int a, int b)
        {
            Console.WriteLine("整数类型");
            return a + b;
        }

        public double Sum(double a, double b)
        {
            Console.WriteLine("小数类型");
            return a + b;
        }

        public string Sum(string a, string b)
        {
            Console.WriteLine("字符串类型");
            return a + b;
        }


    }
}
